import React, { Component } from 'react'

export default class RefsComponent extends Component {
    constructor(props) {
        super(props);

        this.refresh = this.refresh.bind(this);
    }
    state = {
        loading: false
    }
    refresh() {
        const _this = this;
        this.setState({loading: true})
        setTimeout(function(){
            _this.setState({loading: false})
        },2000)
    }
    render() {

        return (
            <div>
                { this.state.loading ? <div> ... </div> : <div>表格</div> }
            </div>
        )
    }
}
